import 'package:flutter/material.dart';
import 'package:flutter_eve_plugin/utils/image_util.dart';
import 'package:flutter_eve_plugin/utils/screen_util.dart';

class HealthTitleViewWidget extends StatelessWidget {
  final String title;

  const HealthTitleViewWidget({Key key, this.title}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      mainAxisAlignment: MainAxisAlignment.center,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: <Widget>[
        Image.asset(
          imageUtilHuPo('health/icon_line_left@2x'),
          height: setRatio(5),
          width: setRatio(30),
        ),
        SizedBox(
          width: setRatio(8),
        ),
        Text(
          '$title',
          style: TextStyle(
              color: Color.fromRGBO(57, 57, 57, 1),
              fontSize: setTextSp(15),
              fontWeight: FontWeight.w500),
        ),
        SizedBox(
          width: setRatio(8),
        ),
        Image.asset(
          imageUtilHuPo('health/icon_line_right@2x'),
          height: setRatio(5),
          width: setRatio(30),
        ),
      ],
    );
  }
}
